/**
 * Created by win 10 on 2/6/2018.
 */
$(function () {
    if (!$.cookie('FUND_USER_TOKEN')) {
        return false;
    }
    $.ajax({
        url: '/sichuansfc/fund/user/profile.bs',
        type: 'get',
        headers: {'FUND_USER_TOKEN': $.cookie('FUND_USER_TOKEN')},
        success: function (data) {
            if (data.status == 100000) {
                if (!data.data.updatePasswrod) {
                    $(".update-tips").css('display', 'block');
                }
                $(".account").text(data.data.phone);
                $(".time").text(parseCastingDate(data.data.loginTime2.toString(), 'yyyy-MM-dd hh:mm:ss'));
                $(".admin-number").text(data.data.managerCount);
                $(".fund-number").text(data.data.fundCount);
                $(".last-ip").text(data.data.ip);
                $(".now-ip").text(data.data.ip2);
            }
        },
        error: function () {
            alert('服务器发生错误')
        }
    })
})